From 0868757cfd78295f5dedce1ae83ae95b32460947 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 11 Jan 2017 14:07:56 -0500 Subject: [PATCH] More filter documentation updates Actually document the filter property, not just -gtk-icon-filter. --- docs/reference/gtk/css-properties.xml | 34 ++++++++++++++++++--------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/docs/reference/gtk/css-properties.xml b/docs/reference/gtk/css-properties.xml index 6bde1685e7..e396053c81 100644 --- a/docs/reference/gtk/css-properties.xml +++ b/docs/reference/gtk/css-properties.xml @@ -120,7 +120,7 @@ We use for syntax productions, and each line is put in a - Color Properties + Color and Filter Properties @@ -147,14 +147,35 @@ We use for syntax productions, and each line is put in a CSS3 + + filter + none | 〈filter-function-list〉 + none + + ✓ + CSS3 + +
+〈filter-function-list〉 = [ 〈filter〉]+ +〈filter〉 = brightness( 〈number〉 ) | + contrast( 〈number〉 ) | + grayscale( 〈number〉 ) | + hue-rotate( 〈number〉 ) | + invert( 〈number〉 ) | + opacity( 〈number〉 ) | + saturate( 〈number〉 ) | + sepia( 〈number〉 ) + + The color property specifies the color to use for text, icons and other foreground rendering. The opacity property specifies the opacity that is - used to composite the widget onto its parent widget. + used to composite the widget onto its parent widget. The filter property + specifies filters to be applied to the rendering. @@ -466,15 +487,6 @@ We use for syntax productions, and each line is put in a rotateX( 〈angle〉 ) | rotateY( 〈angle〉 ) | rotateZ( 〈angle〉 ) | skew( 〈angle〉 [ , 〈angle〉 ]? ) | skewX( 〈angle〉 ) | skewY( 〈angle〉 ) 〈color palette〉 = default | 〈name〉 〈color〉 [ , 〈name〉 〈color〉 ]* -〈filter-function-list〉 = [ 〈filter〉]+ -〈filter〉 = brightness( 〈number〉 ) | - contrast( 〈number〉 ) | - grayscale( 〈number〉 ) | - hue-rotate( 〈number〉 ) | - invert( 〈number〉 ) | - opacity( 〈number〉 ) | - saturate( 〈number〉 ) | - sepia( 〈number〉 ) -- 2.30.2